package org.dromara.system.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 商户绑定机器关系对象 sys_user_machine_association
 *
 * @author Lion Li
 * @date 2025-07-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_machine_association")
public class SysUserMachineAssociation extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    private Long userId;


    private Long machineId;

    /**
     * 绑定时间
     */
    private Date bindTime;


    /**
     * 阶段返现存储备注
     */
    private BigDecimal dealCashBackSum;

    /**
     * 阶段返现计数
     */
    private Integer dealCashBackCount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;


}
